#
# Be sure to run `pod lib lint TYFoundation.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'TYFoundation'
  s.version          = '0.0.14'
  s.summary          = 'IOS 基础组件'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/xiamen_general_ios_component/TYFoundation'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '郭艺伟' => '912723609@qq.com' }
  s.source           = { :git => 'https://gitee.com/xiamen_general_ios_component/TYFoundation.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '8.0'
  # 表示源文件的路径，这个路径是相对podspec文件而言的。（这属性下面单独讨论）
  # s.source_files = 'TYFoundation/Classes/**/*','TYFoundation/Classes/foundation/category/NSArray/**/*'
  s.source_files = 'TYFoundation/*.{h,m}'
  #子文件夹的写法（一定要把父文件夹的source_files给注释掉）
  s.subspec 'Category' do |ss|
    
    #ss.source_files = 'TYFoundation/Classes/Category/**/*'
    
    ss.subspec 'JSON' do |sss|
      sss.source_files = 'TYFoundation/Classes/Category/JSON/**/*'
    end
    
    ss.subspec 'NSArray' do |sss|
      sss.source_files = 'TYFoundation/Classes/Category/NSArray/**/*'
    end
    
    ss.subspec 'NSTimer' do |sss|
      sss.source_files = 'TYFoundation/Classes/Category/NSTimer/**/*'
    end
    
  end
  
  
  s.subspec 'Singleton' do |sss|
    sss.source_files = 'TYFoundation/Classes/Singleton/**/*'
  end
  
#  s.subspec 'Sandbox' do |ss|
#    ss.source_files = 'TYFoundation/Classes/Sandbox/**/*'
#  end

#  s.subspec 'Singleton' do |ss|
#    ss.source_files = 'TYFoundation/Classes/Singleton/**/*'
#  end

  # s.resource_bundles = {
  #   'TYFoundation' => ['TYFoundation/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
end
